<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        $(function(){
            $("#box").fancybox();
        })
        //?
    </script>

</head>
<body>
<a href="javascript:;" id="box"><img src="../images/1.jpg" alt="">
</a>
</body>
</html>